﻿using Direct.IDAL.Manager.Notice;
using DirectSell.Model.ManagerNotice;
using Microsoft.Practices.Unity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace DirectSell.WebLayer.Areas.ManagerAPI
{
    public class ManagerApiController : ApiController
    {
        #region 注入
        [Dependency]
        protected INoticeManagerRepository _repository { get; set; }
        #endregion

        #region 根据ID查询一条公告
        [HttpGet]
        [Route("managerapi/querynotice")]
        public Notices GetNotice(int id)
        {
            return _repository.QueryNotice(id);
        }
        #endregion

    }
}
